public abstract class Player {
    public final boolean isBlack;
    public final String color;
    protected long spentTime;

    public Player(boolean isBlack) {
        this.isBlack = isBlack;
        color = isBlack ? "black" : "white";
        spentTime =0L;
    }

    public boolean isBlack() {
        return isBlack;
    }

    public void setSpentTime(long time) {
        spentTime = time;
    }

    public abstract Action getMove(Board board, int moveNbr);
}
